<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script type="text/javascript">

var pageSize = 3;

$(function() {
	getEventList(1);
});

function getEventList(num) {
	$.ajax({
		url: "getEventList.ga",
		type: "post",
		dataType: "html",
		data: {
			num: num,
			pageSize: pageSize
		},
		success: function(data) {
			$("#result").html(data);
		},
		error: function(e) {
			alert("오류 / " + e.value);
		}
	});
}

</script>

</head>
<body>

<h2 style="float:left;">Event Page - 목록 보기</h2>
<div style="text-align:right;padding-top:10px;">
	<input type="button" class="bigBtn" value="이벤트 등록하기" onclick="location.href='regEventForm.ga'"/>
</div>
<br style="clear:both;"/>
<br/>

<div id="result"></div>

</body>
</html>